package com.tangruitao.bean;


import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class Users {

  private Integer uid;
  @NotBlank(message = "不为空")
  private String uname;
  @NotBlank(message = "不为空")
  private String upassword;
  private Integer id;


  public Integer getUid() {
    return uid;
  }

  public void setUid(Integer uid) {
    this.uid = uid;
  }


  public String getUname() {
    return uname;
  }

  public void setUname(String uname) {
    this.uname = uname;
  }


  public String getUpassword() {
    return upassword;
  }

  public void setUpassword(String upassword) {
    this.upassword = upassword;
  }


  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public Users(@NotBlank(message = "不为空") String uname, @NotBlank(message = "不为空") String upassword) {
    this.uname = uname;
    this.upassword = upassword;
  }

  public Users() {
  }
}
